﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WeiTap.RestClient
{
    /// <summary>
    /// Rest请求中的参数
    /// </summary>
    public class Parameter
    {
        /// <summary>
        /// 参数名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 参数值
        /// </summary>
        public object Value { get; set; }
        /// <summary>
        /// 参数类型
        /// </summary>
        public ParameterType Type { get; set; }
        /// <summary>
        /// MIME 类型
        /// </summary>
        public string ContentType { get; set; }
        /// <summary>
        /// 重写的字符串输出
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return $"{Name}={Value}";
        }
    }
}
